<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of user
 *
 * @author Jiles
 */


class user {

    private $username;
    private $movielist;
    private $uid;
    private $accesstoken;
    private $registredFriends; 

    public function  __construct($_uid, $_accesstoken) {

        $this->uid = $_uid;
        $this->accesstoken = $_accesstoken;
    }

    public function checkPassword($password, $dbpassword){
        
        if(strcmp( $password , $dbpassword ) == 0)
            return true;
        else
            return false;
    }

    public function setMovieList($movieList){
        $this->movielist = $movieList;
    }

    public function getMovieList(){
        return $this->movielist;
    }

    public function getUsername(){
        return $this->username;
    }
    
    public function rankAmongFriends(){}
}
?>
